// index.js
// 获取应用实例
const app = getApp()
const api = app.globalData.api

Page({
    data: {
        result: [],
    },
    async getAbout() {
        let res = await api.curlGet('?cla=myApp&fun=about')
        if (res.code === 1) {
            this.setData({
                result: res.data.result
            })
        } else {
            api.showToast(res.warn)
        }
    },
    onLoad: async function (options) {
        await this.getAbout()
    },
})
